Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XWIKI-22590: Links in message boxes lack contrast #3604

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Oct 25, 2024

Jira URL

https://jira.xwiki.org/browse/XWIKI-22590

Changes

Description

  • Removed the overwrite of the default value for the messageBox colors. Usually those values are equal or very close. Without a colorTheme, one set of those values was not properly initialized.

Clarifications

  • This change was added initially in beaeb18#diff-4c3b8ac56f692179aec4802811ccc197ac6055484d096a0570e808f7472d3d8c
  • This was squashed from the commit 6c0b9e2 on the PR branch. I failed to see that this extra definition of the background-color was 1. superfluous because already defined in the mixin 2. incorrect in some situations.
  • Bootstrap natively uses @alert-<type>-bg instead of @status-<type>-bg. The alert bg is more of a background, while the status bg is more of a border color.

Screenshots & Video

2024-10-25.14-44-57.mp4

The color variation is minimal, and can only be seen on the noColorTheme situation AFAIK.

Executed Tests

Manual tests. Note that I didn't find a way to clear the noTheme cache, so I had to use a fresh instance with the messages.less file updated before the first boot to get the expected results.

Running mvn clean install -f xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker -Pdocker -Dxwiki.enforcer.skip=true -Dxwiki.test.ui.wcag=true -Dit.test=RenamePageIT#renamePageUsedInMacroContentAndParameters -Dgradle.cache.local.enabled=false -Dgradle.cache.remote.enabled=false before the changes successfully returned the WCAG violation, while after building the changes with mvn clean install -f xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources, the contrast violation was not reported anymore.

Expected merging strategy

* Removed the overwrite of the default value for the messageBox colors. Usually those values are equal or very close. Without a colorTheme, one set of those values was not properly initialized.
@michitux michitux merged commit a00ed1b into xwiki:master Nov 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants